﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Data.Entity.ModelConfiguration;
using MvcApplication.Entity.CommonForm;
namespace MvcApplication.CommonForm.Data.Mapping
{
    public class Item_Mapping:EntityTypeConfiguration<Item>
    {
        public Item_Mapping()
        {
            this.ToTable("Form_Item");
            this.HasKey(m => m.Id);
            this.Property(m => m.IsRequire).HasColumnName("ISREQUIRE");
            this.Property(m => m.LabelName).HasColumnName("LABELNAME");
            this.Property(m => m.IsRich).HasColumnName("ISRICH");
            this.Property(m => m.FormId).HasColumnName("FORMID");
            this.Property(m => m.Max).HasColumnName("MAX");
            this.Property(m => m.Min).HasColumnName("MIN");
            this.Property(m => m.MaxLength).HasColumnName("MAXLENGTH");
            this.Property(m => m.MinLength).HasColumnName("MINLENGTH");
            this.Property(m => m.Sort).HasColumnName("SORT");
            this.Property(m => m.IsEmail).HasColumnName("ISMAIL");
            this.Property(m => m.MinLength).HasColumnName("MINLENGTH");
            this.Property(m => m.IsTelPhone).HasColumnName("ISPHONE");
            this.Property(m => m.IsInt).HasColumnName("ISINT");
            this.Property(m => m.IsLong).HasColumnName("ISLONG");
            this.Property(m => m.IsDecimal).HasColumnName("ISDECIMAL");
            this.Property(m => m.IsString).HasColumnName("ISSTRING");
            this.Property(m => m.UploadTo).HasColumnName("UPLOADTO");
        }
    }
}